<style>
	.center td{ text-align: center;}
	th{ text-align: center;}
</style>
<div id="data_page" class="in_page">
	<div class="panel panel-default">
  <div class="panel-body">
   <form class="form-inline" action="{:U('Project/index')}"  method="post">
	  <div class="form-group">
	    <label for="code">项目编号</label>
	    <input type="text" class="form-control" name="code" id="code" placeholder="#000000001">
	  </div>
	  <div class="form-group">
	    <label for="p_name">项目名称</label>
	    <input type="text" class="form-control" name="p_name" id="p_name" placeholder="">
	  </div>
	  <div class="form-group">
	  <label for="p_type">项目类型</label>
	  <select class="form-control" id="p_type" name="p_type">
	  	 <option value="">请选择</option>
		  <option value="1">app</option>
		  <option value="2">微信公众号</option>
		  <option value="3">web</option>
		  <option value="4">小程序</option>
		  <option value="5">H5</option>
		  <option value="6">其他</option>
		</select>
		 </div>
	  
  	  <button type="submit" class="btn btn-sm btn-default">查询</button>
			
</form>
  </div>
</div>
      <table class="table table-bordered center">
        <thead>
          <tr>
            <th><span class="glyphicon "></span>项目编号</th>
            <th><span class="glyphicon "></span>项目名称</th>  
            <th><span class="glyphicon "></span>项目类型</th> 
            <th><span class="glyphicon "></span>创建时间</th>
            <th><span class="glyphicon "></span>项目经理</th>
            <th><span class="glyphicon "></span>开发者</th>
            <th><span class="glyphicon "></span>项目进度</th>
            <th><span class="glyphicon "></span>项目状态</th>
            <th><span class="glyphicon "></span>审核状态</th>
            <th><span class="glyphicon "></span>操作</th>
          </tr>
        </thead>
        <tbody>
	        <volist name="list" id="li">
	        	
	       
			  <tr>
	            <th scope="row">{$li.code}</th>
	            <td>{$li.p_name}</td>
	            <td>{$li.p_type}</td>
	            <td>{$li.ctime}</td>
	            <td>
	            <if condition="$li['pm'] eq ''" >暂无<else/>{$li.pm}</if>
				<if condition="$li['status'] eq '1'" ><button type="button" class="btn btn-success btn-xs pm" pid="{$li.id}" >指定</button></if>
	            </td>
	            <td>
	           	<if condition="$li['pg'] eq ''" >暂无<else/>{$li.pg}</if></td>
	            <td>{$li.ad}</td>
	            <td>{$li.p_state}</td>
	            
	             <td><if condition="$li['status'] eq '0'" >未审核<elseif condition="$li['status'] eq '1'"/>已审核<else/>已驳回</if></td>
	            <td style="text-align: center;" >
				  <button type="button" class="btn btn-success btn-xs see" pid="{$li.id}">查看详情</button>
	  			</td>
	         </tr>
	        </volist>
        </tbody>
      </table> 
	  
	<nav>
		{$page}
	</nav>
</div>

<script language="javascript">
$(function(){
	$(".see").click(function(){
		 showIframe("{:U('Project/content')}?id="+$(this).attr("pid"),"项目编号：{$li.code}","60%","700px");
	});
	$(".pm").click(function(){
		 showIframe("{:U('Project/getuser')}?id="+$(this).attr("pid"),"指定项目经理","80%","350px");
	});
	
	

})
</script>